package com.example.demo.entity;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 对应数据库 teacher_courses 表
 */
@Data
public class TeacherCourse {
    private Integer id;             // 关联id (INT, 自增主键)
    private String teacherId;       // 教师工号 (VARCHAR(20), 外键)
    private String courseId;        // 课程id (VARCHAR(20), 外键)
    private LocalDateTime createdAt; // 创建时间

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
}